package com.db.gallery

class ProjectImage {

	Project project
	String name
	String imagePath
	String thumbnailPath
	
	ProjectImage(def aProject, def aName, def aImagePath, def aThumbnailPath) {
		project = aProject
		name = aName
		imagePath = aImagePath
		thumbnailPath = aThumbnailPath
	}
	
    static constraints = {
		name(unique: 'project')
    }
}
